package com.zoo.buyor.user.dao;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zoo.buyor.user.domain.entity.ItemConfig;
import com.zoo.buyor.user.domain.entity.User;
import com.zoo.buyor.user.mapper.ItemConfigMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 功能物品配置表 服务实现类
 * </p>
 *
 * @author <a href="https://gitee.com/ArZoo">阿祖</a>
 * @since 2024-02-04
 */
@Service
public class ItemConfigDao extends ServiceImpl<ItemConfigMapper, ItemConfig>  {

    public List<ItemConfig> getByType(Integer type) {
        LambdaQueryWrapper<ItemConfig> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ItemConfig::getType, type);
        return list(queryWrapper);
    }
}
